<?php 

error_reporting(E_ALL); 
ini_set("display_errors", 1); 

define('APPLICATION_PATH', filter_input(INPUT_SERVER, 'DOCUMENT_ROOT'));

session_start();

function autoload($class) {
    require_once '../' . str_replace('\\', '/', $class) . '.php';
}

spl_autoload_register('autoload');

$router = new \Infrastructure\Router(filter_input(INPUT_SERVER, 'REQUEST_URI'));
$router->route();